﻿
@{
    ViewBag.Title = "TatisticWorkload";
    Layout = "~/Views/Shared/_Index.cshtml";
}
<script>
    $(function () {
        gridList();
    });

    function gridList() {
        var $gridList = $("#HisgridList");
        $gridList.newtouchLocalDataGrid({
            unwritten: false,
            height: $(window).height() - 185,
            datatype: "local",
            colModel: [
                { label: "主键", name: "id", hidden: true, key: true },
                { label: '工号', name: 'gh', width: 80, align: 'left' },
                { label: '姓名', name: 'xm', width: 150, align: 'left' },
                { label: '治疗工时(H)', name: 'gs', width: 100, align: 'left' },
                { label: '非治疗工时(H)', name: 'fzlgs', width: 100, align: 'left' },
                { label: '总工时(H)', name: 'zgs', width: 100, align: 'left' },
                { label: '治疗占比(非治疗/治疗)', name: 'bl', width: 150, align: 'left' },
                { label: '治疗占比(治疗/总工时)', name: 'zb', width: 80, align: 'left' }
            ],
            pager: "#gridPager",
            sortname: 'desc',
            rowNum: '10',
            viewrecords: true
        });

        var mydata = [
    { id: "1", xm: "潘显Patti", gh: "1331", gs: "35H", fzlgs: "5H", bl: "14.28%", zb: "87.5%", zgs: "40H" },
    { id: "2", xm: "王利群Kate", gh: "1091", gs: "20H", fzlgs: "20H", bl: "100%", zb: "50%", zgs: "40H" },
    { id: "3", xm: "魏增娟Wendy", gh: "2017", gs: "8H", fzlgs: "0", bl: "0%", zb: "100%", zgs: "8H" },
        ];
        for (var i = 0; i <= mydata.length; i++) {
            $gridList.jqGrid('addRowData', i + 1, mydata[i]);
        }
    }
</script>
<form id="form1">
    <div class="panel panel-default" style="margin-top:5px;">
        <div class="panel-heading">
            筛选条件
        </div>
        <div style="padding: 2px;">
            <table class="form">
                <tr>
                    <td class="formTitle">查询类别</td>
                    <td class="formValue">
                        <select id="Cl" class="form-control">
                            <option value="-1">===请选择===</option>
                            <option value="OT">月</option>
                            <option value="ST">年</option>
                        </select>
                    </td>
                    @*<td class="formTitle">时间</td>
                        <td class="formValue">
                            <input id="Kssj" type="text" class="form-control input-wdatepicker" value="@DateTime.Now.ToString("yyyy-MM-dd")" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
                        </td>*@
                    <td class="formTitle">年份</td>
                    <td class="formValue">
                        <select id="Cl" class="form-control">
                            <option value="-1">===请选择===</option>
                            <option value="PT">2015</option>
                            <option value="OT">2016</option>
                            <option value="ST" selected="selected">2017</option>
                        </select>
                    </td>
                    <td class="formTitle">月份</td>
                    <td class="formValue">
                        <select id="Cl" class="form-control">
                            <option value="-1">===请选择===</option>
                            <option value="PT">1</option>
                            <option value="OT">2</option>
                            <option value="ST">3</option>
                            <option value="ST" selected="selected">4</option>
                            <option value="ST">5</option>
                            <option value="ST">6</option>
                        </select>
                    </td>
                    <td class="formTitle">关键字</td>
                    <td class="formValue">
                        <input type="text" id="txtINPUTCODE" class="form-control" placeholder="姓名 工号" />
                    </td>
                    <td colspan="2">
                        <div style="margin-left:80px">
                            <input type="button" id="btn_search" class="btn btn-primary btn-md" value="查询" style="width:55px" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
<div class="gridPanel">
    <table id="HisgridList"></table>
    <div id="gridPager"></div>
</div>
@Html.Partial("_BottomButtonsView", new Newtouch.HIS.Web.Core.Models.BottomButtonViewModel
{
    ShowKeyList = new int[] { 9 },
    F9Text = "导出"
})


